package com.example.yf.controller;


import com.example.yf.pojo.YFPOJO;
import com.example.yf.result.Result;
import com.example.yf.service.YFService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@RestController
@RequestMapping(value = "YouFood")
public class YFController {
    @Autowired
    private YFService yfService;

    @PostMapping("computeBMR")
    public Result ComputeBMR(@RequestBody YFPOJO yfpojo){
        return yfService.ComputeBMR(yfpojo);
    }

}
